package com.qianfeng.missfood.fragment;

import android.os.Bundle;
import android.widget.ImageView;

import com.lidroid.xutils.view.annotation.ViewInject;
import com.qianfeng.missfood.R;


public class GoodsPagerFragment extends BaseAppFragment {
    private static final String ARG_PARAM1 = "param1";
    private String url;
    @ViewInject(R.id.food_goods_iv)
    private ImageView imageView;
    public static GoodsPagerFragment newInstance(String param1) {
        GoodsPagerFragment fragment = new GoodsPagerFragment();
        Bundle args = new Bundle();
        args.putString(ARG_PARAM1, param1);
        fragment.setArguments(args);
        return fragment;
    }
    public GoodsPagerFragment() {
        // Required empty public constructor
    }

    @Override
    public void initData() {
        super.initData();
        if (getArguments() != null) {
            url = getArguments().getString(ARG_PARAM1);
        }
        bitmapUtils.display(imageView, url);
    }

    @Override
    public int getLayoutRes() {
        return R.layout.item_food_goods_vp;
    }
}

